<?php
$pass = '';
if(!empty($this->params['pass'])){
	$pass = $this->params['pass'][0];
}
$html->addCrumb('Manager','/manager/');
$html->addCrumb('Kurs verwalten','/manager/courses/');
$html->addCrumb('Kurs ändern','/manager/courses/update/'.$pass,array('escape'=>false));

?>

<div class="title">Kurs ändern</div>

<?php

echo $this->element('flashMessage');

echo $this->Form->create('Course',array('class'=>'form','action'=>'update'));

echo $this->Form->input('course_name',array('label'=>'Name:*'));
echo $this->Form->input('block_position',array('label'=>'Block:'));
echo $this->Form->input('professor_id',array('label'=>'Professor:'));
echo $this->Form->input('course_specialisation_id',array('label'=>'Spezialisierung:*'));
echo $this->Form->input('profile_id',array('label'=>'Profil:'));
echo $this->Form->input('study_branch_id',array('label'=>'Richtung:*'));

echo '<div class="form_div_buttons">';
echo '<input type="submit" name="Speichern" value="Speichern">';
echo '<a href="'.URL_PREFIX.'/manager/courses/"><button>Abbrechen</button></a>';
echo '</div>';

echo $this->Form->end();

?>